<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="css/base.css"/>
<script>
			function my_click(){
				var user_input=document.getElementById("user_id");
				var password_input=document.getElementById("password_id");
				if(user_input.value==""){
					alert("请输入账户");
					user_input.focus();
					return false;
				}else if(password_input.value==""){
					alert("请输入密码");
					password_input.focus();
					return false;
				}else {
					return true;
				}
			}
		</script>
</head>
<body>
	<div class="form">
		<div class="login">
			<h1>登录系统</h1>
			
		</div>
		<form action="dologin.jsp" method="post" onsubmit="return my_click()">
			<div class="wrap">
				<span>账户：</span> <input id="user_id" type="text" name="username"
					class="edit" />
			</div>
			<div class="wrap">
				<span>密码：</span> <input id="password_id" type="password"
					name="password" class="edit" />
			</div>
			<div class="div1">
			<%
			 if(request.getSession().getAttribute("message")!=null){
				 out.print(request.getSession().getAttribute("message").toString());
			 }
			%>
			</div>
			<div class="wrap">
				<input type="submit" value="登陆" border="no" class="sub" />
			</div>
		</form>
	</div>
</body>
</html>